package com.umakr.demo.service;

import com.umakr.demo.mapper.KaostypeKechengMapper;
import com.umakr.demo.model.Kaostpye;
import com.umakr.demo.model.KaostpyeKecheng;
import com.umakr.demo.model.Kecheng;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/23.
 */
@Service
public class KaostypeKechengService {
    @Autowired
    KaostypeKechengMapper kaostypeKechengMapper;

    public List<Kecheng> kaostypeShowKecheng(Long kaoslid){
        List<Kecheng> list = kaostypeKechengMapper.kaostypeShowkecheng(kaoslid);
        return list;
    }

    public void addAll(KaostpyeKecheng kaostpyeKecheng){
        kaostypeKechengMapper.addAll(kaostpyeKecheng);
    }

    public void  deleteAll(Long kaoslid){
        kaostypeKechengMapper.deleteAll(kaoslid);
    }

    public List<Kaostpye> showKaostype(){
        List<Kaostpye> list = kaostypeKechengMapper.showKaostype();
        return list;
    }



}
